package com.uzai.console.service.feign;

import com.uzai.common.dto.wxwork.DelWxWorkChannelQrCodeDto;
import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.wxcontacts.WxContactsRegisterDto;
import com.uzai.console.dto.feign.wxcontacts.WxGroupMemberRegisterDto;
import com.uzai.console.service.feign.impl.WxContactsFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: jianghan
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-user-server", fallbackFactory = WxContactsFeignFallbackFactory.class)
public interface WxContactsFeignService {

    /**
     * 注册会员
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param wxContactsRegisterDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/robot/userreg2")
    UzaiRespVo<Boolean> userreg2(@RequestBody WxContactsRegisterDto wxContactsRegisterDto);


    /**
     * 注册会员-返回会员id
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param wxGroupMemberRegisterDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/robot/userreg3")
    UzaiRespVo<Long> userreg3(@RequestBody WxGroupMemberRegisterDto wxGroupMemberRegisterDto);
    
    /**
     * 删除用户渠道二维码-返回会员id
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param delWxWorkChannelQrCodeDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.Boolean>
     */
    @PostMapping("/wxwork/del/channelQrCode")
    UzaiRespVo<Boolean> wxworkDelChanelQrcode(@RequestBody DelWxWorkChannelQrCodeDto delWxWorkChannelQrCodeDto);

}
